package top.whysu.rongcloud.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author whysu
 * @version 1.00.00
 * @description 额外配置
 * @copyright
 * @company
 * @date 2021-03-17 16:14
 */
@Component
public class ConfigConstant {
    /**
     * 融云应用AppKey
     */
    public static String appKey;

    @Value("${erongcloud.appSecret}")
    public void setAppSecret(String APP_SECRET) {
        appSecret = APP_SECRET;
    }

    /**
     * 融云应用AppSecret
     */
    public static String appSecret;

    /**
     * 融云申请的key
     */
    @Value("${erongcloud.appKey}")
    public void setAppKey(String APP_KEY) {
        appKey = APP_KEY;
    }

    /**
     * 默认空头像URL（用户）
     */
    public static String defaultImage;

    @Value("${erongcloud.defaultImage}")
    public void setDefaultImage(String DEFAULT_IMAGE) {
        defaultImage = DEFAULT_IMAGE;
    }

    /**
     * 默认空头像URL（群组）
     */
    public static String defaultGroupImage;

    @Value("${erongcloud.defaultGroupImage}")
    public void setDefaultGroupImage(String DEFAULT_GROUP_IMAGE) {
        defaultGroupImage = DEFAULT_GROUP_IMAGE;
    }
}